﻿using HrEFCore;
using HrEFCore.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HrIService
{
	public interface IEMRService
	{
		Task<int> AddEMR(EMR eMR);//添加EMR数据
        Task<CFTK> cftkById(string id);//三级机构下拉列表,根据id查name，三级
        Task<CMK> SelectCMKById(string id);//职位分类
        Task<CM> SelectCMById(string id);//职业名称
        Task<int> DeleteEMR(short MreId);//删除EMR的数据
		Task<int> ReviseEMR(EMR eMR);//修改EMR数据
		List<EMR> CallFenyeStoredProcedure(int pageSize, string keyName, string tableName, string where, int currentPage, out int totalRows);
        List<EMRView> GetPagedEMRView(int page, int pageSize);
        Task<EMR> EMRAllAsync(short mreId);//根据mreId查询
        Task <List<EMR>> EMRAllAsyncSY(short mreId);//根据mreId查询
	}
}
